package com.wgchao.identityrightsmanagement.infrastructure.jpa.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @ClassName: SysPermissionOfficeFunction
 * @author: wgchao
 * @createTime: 2020/6/28 5:38 PM
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "sys_permission_office_function", uniqueConstraints = @UniqueConstraint(columnNames = {"pid","func_mark"}))
@Entity
public class SysPermissionOfficeFunction {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id" )
    private Long id;

    @Column(name = "pid")
    private Long pid;

    @Column(name = "func_mark", length = 50)
    private String funcMark;

}
